/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  text-align: right;
  direction: rtl;
  padding: 20px;
}

/* Header */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: #ffffff;
  border-bottom: 2px solid #ddd;
}

.logo img {
  width: 100px;
  height: auto;
  
}

.center-text {
  text-align: center;
}

.center-text h1 {
  font-size: 28px;
  font-weight: bold;
  color: #389c54;
}

.center-text h2 {
  font-size: 18px;
  color: #555;
}

.center-text p {
  font-size: 14px;
  color: #777;
}
/* Navigation */
.navbar {
  background-color: #003366;
  overflow: hidden;
  text-align: center;
  width: 100%;
  margin: 20px 0;
}

.navbar a {
  display: inline-block;
  color: white;
  text-align: center;
  padding: 12px 16px;
  text-decoration: none;
  font-size: 14px;
}

.navbar a:hover {
  background-color: #0055a5;
}

/* Hero Section */
.hero {
  background-color: #eef3f8;
  padding: 10px 20px;
  text-align: center;
}

.hero h2 {
  font-size: 24px;
  color: #003366;
  margin-bottom: 15px;
}

.hero p {
  font-size: 16px;
  color: #555;
  margin-bottom: 25px;
}

.apply-btn {
  display: inline-block;
  padding: 5px 28px;
  background-color: #28a745;
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.apply-btn:hover {
  background-color: #e65b4e;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Intro Section */
.intro-section {
  max-width: 800px;
  margin: 40px auto;
  padding: 30px 20px;
  background-color: #ffffff;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.intro-section h2 {
  font-size: 24px;
  color: #003366;
  margin-bottom: 15px;
}

.intro-section .intro-text {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
  text-align: justify;
  line-height: 1.8;
}

.download-btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: #003366;
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
}

.download-btn:hover {
  background-color: #0055a5;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Cards Section */
.cards-section {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 40px 20px;
  background-color: #fff;
}

.card {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 20px;
  width: 100%;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  font-size: 20px;
  color: #003366;
  margin-bottom: 15px;
}

.card p {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

.download-card-btn {
  display: block;
  padding: 10px 20px;
  background-color: #003366;
  color: white;
  text-decoration: none;
  font-size: 14px;
  border-radius: 6px;
  margin: 10px auto;
  text-align: center;
  width: fit-content;
  transition: background-color 0.3s ease;
}

.download-card-btn:hover {
  background-color: #0055a5;
}

/* زر بدء التقديم الآن - يجب أن يكون في المنتصف */
.start-application-section {
  text-align: center;
  margin: 10px 0;
}

.apply-now-btn {
  display: inline-block;
  padding: 8px 30px;
  background-color: #28a745;
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.apply-now-btn:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* زر تحميل المستند الكامل - يجب أن يكون في المنتصف أسفل الزر السابق */
.final-download-section {
  text-align: center;
  margin: 10px 0;
}

.full-download-btn {
  display: inline-block;
  padding: 5px 30px;
  background-color: #003366;
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.full-download-btn:hover {
  background-color: #0055a5;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}

/* Responsive Design */

@media (max-width: 768px) {
  .cards-section {
    flex-direction: column;
    align-items: center;
  }

  .hero h2 {
    font-size: 20px;
  }

  .hero p {
    font-size: 14px;
  }

  .apply-btn {
    font-size: 14px;
    padding: 10px 16px;
  }

  .intro-section h2 {
    font-size: 20px;
  }

  .intro-section .intro-text {
    font-size: 13px;
  }

  .card h3 {
    font-size: 18px;
  }

  .card p {
    font-size: 13px;
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  .hero h2 {
    font-size: 22px;
  }

  .hero p {
    font-size: 15px;
  }

  .intro-section h2 {
    font-size: 22px;
  }

  .intro-section .intro-text {
    font-size: 14px;
  }

  .card h3 {
    font-size: 18px;
  }

  .card p {
    font-size: 14px;
  }
}

@media (min-width: 993px) {
  .hero h2 {
    font-size: 26px;
  }

  .hero p {
    font-size: 16px;
  }

  .intro-section h2 {
    font-size: 24px;
  }

  .intro-section .intro-text {
    font-size: 14px;
  }

  .card h3 {
    font-size: 20px;
  }

  .card p {
    font-size: 14px;
  }
}